package com.yintao.ytframe.base.design.abfactory;

import org.springframework.util.StringUtils;

import java.util.HashMap;

public class ExamAppointService implements IAppointApiService {


    /**
     * 体检预约
     *
     * @return
     */
    public String appoint(AppointParam appointParam, HashMap<String, String> extMap) throws Exception {
        System.out.println("体检预约调用....");
        //参数校验，预约人不能为空
        if (StringUtils.isEmpty(appointParam.getUserName())) {
            throw new Exception("预约人不能为空");
        }
        return "1";
    }

}
